package com.ibeetl.admin.console.web.query;

import java.util.Date;

import org.apache.commons.lang3.StringUtils;

import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.Tool;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam;

public class LeaveMsgQuery extends PageParam {

	@Query(name="反馈人",display=true,fuzzy=true)
	private String name;
	@Query(name="反馈人手机",display=true)
	private String phone;
	@Query(name="处理人",display=true,fuzzy=true)
	private String creator;
	@Query(name="处理状态",display=true,type=Query.TYPE_DICT,dict=CoreDictType.LEAVEMSG_STATUS)
	private String status;
	
	@Query(name="反馈类型",display=true,type=Query.TYPE_DICT,dict=CoreDictType.LM_TYPE)
	private String type;
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Query(name="处理日期",display=true,type=Query.TYPE_DATE_BETWEEN)
	private String dealTimeRange;
	private Date dealTimeMin;
	private Date dealTimeMax;
	

    public String getDealTimeRange() {
		return dealTimeRange;
	}
	public void setDealTimeRange(String dealTimeRange) {
		this.dealTimeRange = dealTimeRange;
		if(StringUtils.isEmpty(dealTimeRange)) {
			return ;
		}
		Date[] ds = Tool.parseDataRange(dealTimeRange);
		this.dealTimeMin=ds[0];
		this.dealTimeMax =ds[1];
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getCreator() {
		return creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}

	public Date getDealTimeMin() {
		return dealTimeMin;
	}
	public void setDealTimeMin(Date dealTimeMin) {
		this.dealTimeMin = dealTimeMin;
	}
	public Date getDealTimeMax() {
		return dealTimeMax;
	}
	public void setDealTimeMax(Date dealTimeMax) {
		this.dealTimeMax = dealTimeMax;
	}



}
